home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / qptech.arc / TI194.ASC < prev    next >
Text File  |  1991-04-25  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. PRODUCT  :  QUATTRO PRO                            NUMBER  :  194
  9. VERSION  :  ALL
  10.      OS  :  MS/PC DOS
  11.    DATE  :  April 5, 1991                 PAGE  :  1/1
  12.  
  13.   TITLE  :  FILE FIND MACRO
  14.  
  15.  
  16.  
  17.  
  18. This is a macro for checking whether a spreadsheet is currently
  19. opened or closed in Quattro Pro.  The macro beeps when a
  20. spreadsheet named FILENAME is currently open, or executes a macro
  21. named FILE NOT OPEN when it is not.
  22.  
  23. A11: 'FINDFILE
  24. B11: '{choose}
  25. B12: '{edit}
  26. B13: 'FILENAME
  27. B14: '{CR}
  28. B15: '{if
  29. @iserr(@find("FILENAME",@curvalue("file","save"),0))}{file not
  30. open}
  31. B16: '{beep}
  32.  
  33.  
  34. In your spreadsheet, the macro will appear as follows:
  35.  
  36. FILEFIND    {choose}
  37.         {edit}
  38.         filename
  39.         {CR}
  40.         {if
  41. @iserr(@find("FILENAME",@curvalue("file","save"),0))}{file not
  42. open}
  43.         {beep}
  44.  
  45.  
  46. To test for an open file, the FILEFIND macro should be in your
  47. current spreadsheet.  Change the cell containing the label
  48. filename to the name of the file to check.  To execute this
  49. macro, select / <T>ools <M>acro <E>xecute FILEFIND and press
  50. <Enter>.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.